<dl class="kx_gallery_album kx_display">
	<dd class="kx_content">
		<div class="kx_head">
			<h3 class="kx_title"><?php print $this->row['name']?></h3>
		
			<?php if (count($site = $this->urlParams('fromSite'))):?>
				<a class="kx_back" href="<?php print $this->url(array('alias'=>$site['alias']),'site',true)?>">&laquo; powrót do strony <em><?php print $this->escape($site['name'])?></em></a>
			<?php else:?>
				<a class="kx_back" href="<?php print $this->url(array('action' => 'index','controller'=>'gallery','module'=>'gallery'),'default',true);?>">&laquo; powrót do spisu galerii</a>
			<?php endif;?>
		</div>
		
		<ul class="kx_gallery_images kx_list">
			<?php foreach ((array)$this->data as $row):?>
			<li class="kx_item">
				<a rel="libghtbox" href="/upload/gallery/preview/<?php print $this->escape($row['image'])?>">
				<span></span>

				<?php if ('' != $row['name']):?>
					<em><?php print $row['name']?></em>
				<?php endif;?>

				<img alt="<?php print $row['name']?>" src="/upload/gallery/thumb/<?php print $this->escape($row['image'])?>"></a>

				<?php if ('' != $row['description']):?>
					<div class="kx_description"><?php print $this->getHelper('renderer')->render($content);?></div>
				<?php endif;?>
			</li>
			<?php endforeach;?>
		</ul>
	</dd>
</dl>